<!--
 * @Author: your name
 * @Date: 2021-08-19 15:22:50
 * @LastEditTime: 2021-08-19 15:43:36
 * @LastEditors: Please set LastEditors
 * @Description: overflow
 * @FilePath: \代码\day04\3-overflow.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>overflow</title>
    <style>
        .outer {
            width: 500px;
            height: 500px;
            background-color: tomato;
            margin: 0 auto;
            overflow-x:hidden;
            overflow-y: scroll;
        }
        .outer>.inner {
            width: 1000px;
            height: 1000px;
            background-color: turquoise;
            opacity: .6;
        }
        input:focus {
            border:2px solid tomato;
            outline-color:violet;
            outline-width: 5px;
            outline-style: solid;
            outline-offset: 5px;
        }
    </style>
</head>
<body>
    <input type="text">
    <div class="outer">
        <div class="inner">
            hello
            <div style="height: 500px;"></div>
            world
        </div>
    </div>
</body>
</html>